﻿using UnityEngine;
using System.Collections;

public class Trampoline : MonoBehaviour
{
	public float explosionStrength;

	void OnCollisionEnter(Collision collision)
	{
		if(collision.gameObject.CompareTag("Player"))
		{
			collision.rigidbody.AddExplosionForce(explosionStrength, transform.position, 5);
		}
	}
}
